package com.xiaochi.subject.application.convert;

import com.xiaochi.subject.application.dto.SubjectAnswerDTO;
import com.xiaochi.subject.application.dto.SubjectInfoDTO;
import com.xiaochi.subject.domain.entity.SubjectAnswerBO;
import com.xiaochi.subject.domain.entity.SubjectInfoBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author zqx
 * @since 2024/7/20
 */
@Mapper
public interface SubjectAnswerDTOConverter {

    SubjectAnswerDTOConverter INSTANCE = Mappers.getMapper(SubjectAnswerDTOConverter.class);

    SubjectAnswerBO SubjectDTOToBo(SubjectAnswerDTO subjectAnswerDTO);

    List<SubjectInfoDTO> SubjectBOToDTOList(List<SubjectInfoBO> boList);

    List<SubjectAnswerBO> SubjectDTOToBOList(List<SubjectAnswerDTO> dtoList);
}
